﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Collections.Generic;

namespace MyLiveMesh.ViewModels
{
    public class Node
    {
        public string Name { get; set; }
        public List<Node> Children { get; set; }
    }
    public class treeviewPopupViewModel
    {
        private ObservableCollection<Node> directories = new ObservableCollection<Node>();
        public ObservableCollection<Node> Directories { get { return directories; } set { value = directories; } }

        public treeviewPopupViewModel()
        {
            directories.Add(new Node { Name = "test", Children = new List<Node> { new Node{Name = "test2"}, new Node{Name = "test3"} } });
            directories.Add(new Node { Name = "tes2", Children = new List<Node> { new Node { Name = "test6" }, new Node { Name = "test5" } } });
        }
    }
}
